<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Repetier-Firmware: GCodeSource Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="icon128.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Repetier-Firmware
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_g_code_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a> &#124;
<a href="class_g_code_source-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">GCodeSource Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_communication_8h_source.html">Communication.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for GCodeSource:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_g_code_source.png" usemap="#GCodeSource_map" alt=""/>
  <map id="GCodeSource_map" name="GCodeSource_map">
<area href="class_flash_g_code_source.html" alt="FlashGCodeSource" shape="rect" coords="0,56,125,80"/>
<area href="class_serial_g_code_source.html" alt="SerialGCodeSource" shape="rect" coords="135,56,260,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9db933e2b4eadeabd54cdea70c43c28a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#a9db933e2b4eadeabd54cdea70c43c28a">GCodeSource</a> ()</td></tr>
<tr class="separator:a9db933e2b4eadeabd54cdea70c43c28a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab19d2fdfe5a28d2f09e1da5caea43604"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#ab19d2fdfe5a28d2f09e1da5caea43604">~GCodeSource</a> ()</td></tr>
<tr class="separator:ab19d2fdfe5a28d2f09e1da5caea43604"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa88bc201927d4e17172e4d381a0f5cb5"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#aa88bc201927d4e17172e4d381a0f5cb5">isOpen</a> ()=0</td></tr>
<tr class="separator:aa88bc201927d4e17172e4d381a0f5cb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a068a07e761c56c4bc41105e0921a71d3"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#a068a07e761c56c4bc41105e0921a71d3">supportsWrite</a> ()=0</td></tr>
<tr class="memdesc:a068a07e761c56c4bc41105e0921a71d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">true if write is a non dummy function  <a href="#a068a07e761c56c4bc41105e0921a71d3">More...</a><br /></td></tr>
<tr class="separator:a068a07e761c56c4bc41105e0921a71d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82fd5e87eee2880fb754e52c94310668"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#a82fd5e87eee2880fb754e52c94310668">closeOnError</a> ()=0</td></tr>
<tr class="separator:a82fd5e87eee2880fb754e52c94310668"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e8a3d861a727d7705e08e0e4a171550"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#a0e8a3d861a727d7705e08e0e4a171550">dataAvailable</a> ()=0</td></tr>
<tr class="separator:a0e8a3d861a727d7705e08e0e4a171550"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af735c045644042b691b08101936c04b9"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#af735c045644042b691b08101936c04b9">readByte</a> ()=0</td></tr>
<tr class="separator:af735c045644042b691b08101936c04b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae17c54407f5323a59e7474b3815ad0a5"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#ae17c54407f5323a59e7474b3815ad0a5">close</a> ()=0</td></tr>
<tr class="separator:ae17c54407f5323a59e7474b3815ad0a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74fb16661a0781b72e5ae558e787b515"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#a74fb16661a0781b72e5ae558e787b515">writeByte</a> (uint8_t byte)=0</td></tr>
<tr class="separator:a74fb16661a0781b72e5ae558e787b515"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a6d0dd3ebd79c5339161d80a79d36450a"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#a6d0dd3ebd79c5339161d80a79d36450a">registerSource</a> (<a class="el" href="class_g_code_source.html">GCodeSource</a> *newSource)</td></tr>
<tr class="separator:a6d0dd3ebd79c5339161d80a79d36450a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca9b5096247ff2646ddf052bcc69450b"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#aca9b5096247ff2646ddf052bcc69450b">removeSource</a> (<a class="el" href="class_g_code_source.html">GCodeSource</a> *delSource)</td></tr>
<tr class="separator:aca9b5096247ff2646ddf052bcc69450b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac76c240209d35b252fb2463b9f357fa4"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#ac76c240209d35b252fb2463b9f357fa4">rotateSource</a> ()</td></tr>
<tr class="memdesc:ac76c240209d35b252fb2463b9f357fa4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Move active to next source.  <a href="#ac76c240209d35b252fb2463b9f357fa4">More...</a><br /></td></tr>
<tr class="separator:ac76c240209d35b252fb2463b9f357fa4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7fe3435050b82ba4a3b4989d0071978"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#ad7fe3435050b82ba4a3b4989d0071978">writeToAll</a> (uint8_t byte)</td></tr>
<tr class="memdesc:ad7fe3435050b82ba4a3b4989d0071978"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write to all listening sources.  <a href="#ad7fe3435050b82ba4a3b4989d0071978">More...</a><br /></td></tr>
<tr class="separator:ad7fe3435050b82ba4a3b4989d0071978"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa8e8f20501c8650f001afeaa95b343a"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#aaa8e8f20501c8650f001afeaa95b343a">printAllFLN</a> (<a class="el" href="_h_a_l_8h.html#a6c7567c1812b6b6ca9067377476ddc4e">FSTRINGPARAM</a>(text))</td></tr>
<tr class="separator:aaa8e8f20501c8650f001afeaa95b343a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acef1e8fedad01a90bcb391ba34e10636"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#acef1e8fedad01a90bcb391ba34e10636">printAllFLN</a> (<a class="el" href="_h_a_l_8h.html#a6c7567c1812b6b6ca9067377476ddc4e">FSTRINGPARAM</a>(text), int32_t v)</td></tr>
<tr class="separator:acef1e8fedad01a90bcb391ba34e10636"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a36bb81bf797d0ef2cb8ed185f3686d0a"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#a36bb81bf797d0ef2cb8ed185f3686d0a">lastLineNumber</a></td></tr>
<tr class="separator:a36bb81bf797d0ef2cb8ed185f3686d0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46467089fa61e499743183f0191d20cb"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#a46467089fa61e499743183f0191d20cb">wasLastCommandReceivedAsBinary</a></td></tr>
<tr class="memdesc:a46467089fa61e499743183f0191d20cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Was the last successful command in binary mode?  <a href="#a46467089fa61e499743183f0191d20cb">More...</a><br /></td></tr>
<tr class="separator:a46467089fa61e499743183f0191d20cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2717b3f4bb33c486e3f9ea57a35173ed"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_h_a_l_8h.html#a5f255edd429b0abc92fae25c511d45a7">millis_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#a2717b3f4bb33c486e3f9ea57a35173ed">timeOfLastDataPacket</a></td></tr>
<tr class="separator:a2717b3f4bb33c486e3f9ea57a35173ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad39d64a13c1e499e191e78e9a72c3d7f"><td class="memItemLeft" align="right" valign="top">int8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#ad39d64a13c1e499e191e78e9a72c3d7f">waitingForResend</a></td></tr>
<tr class="memdesc:ad39d64a13c1e499e191e78e9a72c3d7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Waiting for line to be resend. -1 = no wait.  <a href="#ad39d64a13c1e499e191e78e9a72c3d7f">More...</a><br /></td></tr>
<tr class="separator:ad39d64a13c1e499e191e78e9a72c3d7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:aea5771d12066142ece774fed7527624e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_g_code_source.html">GCodeSource</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#aea5771d12066142ece774fed7527624e">activeSource</a> = &amp;serial0Source</td></tr>
<tr class="separator:aea5771d12066142ece774fed7527624e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr class="memitem:a02608fd798712b762914596944a81a55"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="_h_a_l_8h.html#adfaa4526bb47342be47f89a9eb6b3bef">fast8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#a02608fd798712b762914596944a81a55">numSources</a> = 2</td></tr>
<tr class="memdesc:a02608fd798712b762914596944a81a55"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of data sources available.  <a href="#a02608fd798712b762914596944a81a55">More...</a><br /></td></tr>
<tr class="separator:a02608fd798712b762914596944a81a55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a0c4af4b42cae80d8f67208954899cc"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="_h_a_l_8h.html#adfaa4526bb47342be47f89a9eb6b3bef">fast8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#a4a0c4af4b42cae80d8f67208954899cc">numWriteSources</a> = 2</td></tr>
<tr class="separator:a4a0c4af4b42cae80d8f67208954899cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae19a83f75cafb59368086b24ab16721"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_g_code_source.html">GCodeSource</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#aae19a83f75cafb59368086b24ab16721">sources</a> [<a class="el" href="_communication_8h.html#a466012b50ff7100ac83ac70804175b22">MAX_DATA_SOURCES</a>] = {&amp;serial0Source,&amp;serial1Source}</td></tr>
<tr class="separator:aae19a83f75cafb59368086b24ab16721"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80d245ab58ded26a546c818bdd4c5892"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_g_code_source.html">GCodeSource</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_code_source.html#a80d245ab58ded26a546c818bdd4c5892">writeableSources</a> [<a class="el" href="_communication_8h.html#a466012b50ff7100ac83ac70804175b22">MAX_DATA_SOURCES</a>] = {&amp;serial0Source,&amp;serial1Source}</td></tr>
<tr class="separator:a80d245ab58ded26a546c818bdd4c5892"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class defines the general interface to handle gcode communication with the firmware. This allows it to connect to different data sources and handle them all inside the same data structure. If several readers are active, the first one sending a byte pauses all other inputs until the command is complete. Only then the next reader will be queried. New queries are started in round robin fashion so every channel gets the same chance to send commands.</p>
<p>Available source types are:</p><ul>
<li>serial communication port</li>
<li>sd card</li>
<li>flash memory </li>
</ul>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a9db933e2b4eadeabd54cdea70c43c28a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9db933e2b4eadeabd54cdea70c43c28a">&#9670;&nbsp;</a></span>GCodeSource()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GCodeSource::GCodeSource </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ab19d2fdfe5a28d2f09e1da5caea43604"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab19d2fdfe5a28d2f09e1da5caea43604">&#9670;&nbsp;</a></span>~GCodeSource()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual GCodeSource::~GCodeSource </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ae17c54407f5323a59e7474b3815ad0a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae17c54407f5323a59e7474b3815ad0a5">&#9670;&nbsp;</a></span>close()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void GCodeSource::close </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="class_flash_g_code_source.html#a3e039fa43635ffc6939d2ad70989e711">FlashGCodeSource</a>, and <a class="el" href="class_serial_g_code_source.html#ad8a4422b8f293daedac636ebc1620c25">SerialGCodeSource</a>.</p>

</div>
</div>
<a id="a82fd5e87eee2880fb754e52c94310668"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a82fd5e87eee2880fb754e52c94310668">&#9670;&nbsp;</a></span>closeOnError()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool GCodeSource::closeOnError </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="class_flash_g_code_source.html#a3214598efb4e7b66c43d1f789a06671f">FlashGCodeSource</a>, and <a class="el" href="class_serial_g_code_source.html#a3297ba3eae43de9abff1d2ff1cb441fd">SerialGCodeSource</a>.</p>

</div>
</div>
<a id="a0e8a3d861a727d7705e08e0e4a171550"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e8a3d861a727d7705e08e0e4a171550">&#9670;&nbsp;</a></span>dataAvailable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool GCodeSource::dataAvailable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="class_flash_g_code_source.html#afd36c0efa9be8b75c449ba0c17f7f92d">FlashGCodeSource</a>, and <a class="el" href="class_serial_g_code_source.html#a1ca61ad50d3e9de9db9c2e0b0430201d">SerialGCodeSource</a>.</p>

</div>
</div>
<a id="aa88bc201927d4e17172e4d381a0f5cb5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa88bc201927d4e17172e4d381a0f5cb5">&#9670;&nbsp;</a></span>isOpen()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool GCodeSource::isOpen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="class_flash_g_code_source.html#a4c4024b9fbcec5caf9d4d8586d7dfbff">FlashGCodeSource</a>, and <a class="el" href="class_serial_g_code_source.html#aa37fcf0245e465929c9f0c9d4d15efd1">SerialGCodeSource</a>.</p>

</div>
</div>
<a id="aaa8e8f20501c8650f001afeaa95b343a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa8e8f20501c8650f001afeaa95b343a">&#9670;&nbsp;</a></span>printAllFLN() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void GCodeSource::printAllFLN </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_h_a_l_8h.html#a6c7567c1812b6b6ca9067377476ddc4e">FSTRINGPARAM</a>(text)&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="acef1e8fedad01a90bcb391ba34e10636"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acef1e8fedad01a90bcb391ba34e10636">&#9670;&nbsp;</a></span>printAllFLN() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void GCodeSource::printAllFLN </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_h_a_l_8h.html#a6c7567c1812b6b6ca9067377476ddc4e">FSTRINGPARAM</a>(text)&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="af735c045644042b691b08101936c04b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af735c045644042b691b08101936c04b9">&#9670;&nbsp;</a></span>readByte()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int GCodeSource::readByte </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="class_flash_g_code_source.html#a85d1a7ddb80412b5615659e7456321fb">FlashGCodeSource</a>, and <a class="el" href="class_serial_g_code_source.html#a987322f362a396d7c80a8191fed9012f">SerialGCodeSource</a>.</p>

</div>
</div>
<a id="a6d0dd3ebd79c5339161d80a79d36450a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d0dd3ebd79c5339161d80a79d36450a">&#9670;&nbsp;</a></span>registerSource()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void GCodeSource::registerSource </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_g_code_source.html">GCodeSource</a> *&#160;</td>
          <td class="paramname"><em>newSource</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aca9b5096247ff2646ddf052bcc69450b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca9b5096247ff2646ddf052bcc69450b">&#9670;&nbsp;</a></span>removeSource()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void GCodeSource::removeSource </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_g_code_source.html">GCodeSource</a> *&#160;</td>
          <td class="paramname"><em>delSource</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ac76c240209d35b252fb2463b9f357fa4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac76c240209d35b252fb2463b9f357fa4">&#9670;&nbsp;</a></span>rotateSource()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void GCodeSource::rotateSource </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Move active to next source. </p>
<p>&lt; Move active to next source </p>

</div>
</div>
<a id="a068a07e761c56c4bc41105e0921a71d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a068a07e761c56c4bc41105e0921a71d3">&#9670;&nbsp;</a></span>supportsWrite()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool GCodeSource::supportsWrite </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>true if write is a non dummy function </p>

<p>Implemented in <a class="el" href="class_flash_g_code_source.html#ad23b252a7f747eee1d72f86b21261895">FlashGCodeSource</a>, and <a class="el" href="class_serial_g_code_source.html#afd5cc5c1d05f7df69c853409cfcc9c68">SerialGCodeSource</a>.</p>

</div>
</div>
<a id="a74fb16661a0781b72e5ae558e787b515"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74fb16661a0781b72e5ae558e787b515">&#9670;&nbsp;</a></span>writeByte()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void GCodeSource::writeByte </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>byte</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implemented in <a class="el" href="class_flash_g_code_source.html#a48dd242ef66b1fd2b34496605b91011f">FlashGCodeSource</a>, and <a class="el" href="class_serial_g_code_source.html#a9f5bfbb5922865a0b41d0a88ef27ef36">SerialGCodeSource</a>.</p>

</div>
</div>
<a id="ad7fe3435050b82ba4a3b4989d0071978"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7fe3435050b82ba4a3b4989d0071978">&#9670;&nbsp;</a></span>writeToAll()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void GCodeSource::writeToAll </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>byte</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Write to all listening sources. </p>
<p>&lt; Write to all listening sources </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aea5771d12066142ece774fed7527624e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea5771d12066142ece774fed7527624e">&#9670;&nbsp;</a></span>activeSource</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_code_source.html">GCodeSource</a> * GCodeSource::activeSource = &amp;serial0Source</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a36bb81bf797d0ef2cb8ed185f3686d0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a36bb81bf797d0ef2cb8ed185f3686d0a">&#9670;&nbsp;</a></span>lastLineNumber</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t GCodeSource::lastLineNumber</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a02608fd798712b762914596944a81a55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a02608fd798712b762914596944a81a55">&#9670;&nbsp;</a></span>numSources</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_h_a_l_8h.html#adfaa4526bb47342be47f89a9eb6b3bef">fast8_t</a> GCodeSource::numSources = 2</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Number of data sources available. </p>

</div>
</div>
<a id="a4a0c4af4b42cae80d8f67208954899cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a0c4af4b42cae80d8f67208954899cc">&#9670;&nbsp;</a></span>numWriteSources</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_h_a_l_8h.html#adfaa4526bb47342be47f89a9eb6b3bef">fast8_t</a> GCodeSource::numWriteSources = 2</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aae19a83f75cafb59368086b24ab16721"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae19a83f75cafb59368086b24ab16721">&#9670;&nbsp;</a></span>sources</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_code_source.html">GCodeSource</a> * GCodeSource::sources = {&amp;serial0Source,&amp;serial1Source}</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a2717b3f4bb33c486e3f9ea57a35173ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2717b3f4bb33c486e3f9ea57a35173ed">&#9670;&nbsp;</a></span>timeOfLastDataPacket</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_h_a_l_8h.html#a5f255edd429b0abc92fae25c511d45a7">millis_t</a> GCodeSource::timeOfLastDataPacket</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ad39d64a13c1e499e191e78e9a72c3d7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad39d64a13c1e499e191e78e9a72c3d7f">&#9670;&nbsp;</a></span>waitingForResend</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int8_t GCodeSource::waitingForResend</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Waiting for line to be resend. -1 = no wait. </p>

</div>
</div>
<a id="a46467089fa61e499743183f0191d20cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46467089fa61e499743183f0191d20cb">&#9670;&nbsp;</a></span>wasLastCommandReceivedAsBinary</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t GCodeSource::wasLastCommandReceivedAsBinary</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Was the last successful command in binary mode? </p>

</div>
</div>
<a id="a80d245ab58ded26a546c818bdd4c5892"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80d245ab58ded26a546c818bdd4c5892">&#9670;&nbsp;</a></span>writeableSources</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_code_source.html">GCodeSource</a> * GCodeSource::writeableSources = {&amp;serial0Source,&amp;serial1Source}</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/ArduinoAVR/Repetier/<a class="el" href="_communication_8h_source.html">Communication.h</a></li>
<li>src/ArduinoAVR/Repetier/<a class="el" href="gcode_8cpp.html">gcode.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_g_code_source.html">GCodeSource</a></li>
    <li class="footer">Generated on Tue Sep 19 2017 18:54:02 for Repetier-Firmware by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
